// "Copyright @ 2010 Michael P. Reilly. All rights reserved."

// Add a message to the "messages" footer
function send_msg(message, itype) {
    var txtNode = document.createTextNode(message);
    var spanNode = document.createElement('span');
    var divNode = document.createElement('div');
    var hrNode = document.createElement('hr');
    var msgNode = document.getElementById("messages");
    msgNode.appendChild(hrNode);
    msgNode.appendChild(divNode);
    divNode.appendChild(spanNode);
    spanNode.appendChild(txtNode);
    divNode.setAttribute('class', 'msgclass');
    spanNode.setAttribute('class', itype);
}
